package com.ruoyi.youtian.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.youtian.domain.TEarlyWarningRecord;
import com.ruoyi.youtian.domain.vo.TEarlyWarningRecordVo;

/**
 * 触发预警记录Mapper接口
 * 
 * @author ruoyi
 * @date 2022-10-12
 */
public interface TEarlyWarningRecordMapper 
{
    /**
     * 查询触发预警记录
     * 
     * @param id 触发预警记录主键
     * @return 触发预警记录
     */
    public TEarlyWarningRecord selectTEarlyWarningRecordById(Long id);

    /**
     * 查询触发预警记录列表
     * 
     * @param tEarlyWarningRecord 触发预警记录
     * @return 触发预警记录集合
     */
    @DataScope(deptAlias = "d")
    public List<TEarlyWarningRecord> selectTEarlyWarningRecordList(TEarlyWarningRecord tEarlyWarningRecord);

    /**
     * 新增触发预警记录
     * 
     * @param tEarlyWarningRecord 触发预警记录
     * @return 结果
     */
    public int insertTEarlyWarningRecord(TEarlyWarningRecord tEarlyWarningRecord);

    /**
     * 修改触发预警记录
     * 
     * @param tEarlyWarningRecord 触发预警记录
     * @return 结果
     */
    public int updateTEarlyWarningRecord(TEarlyWarningRecord tEarlyWarningRecord);

    /**
     * 删除触发预警记录
     * 
     * @param id 触发预警记录主键
     * @return 结果
     */
    public int deleteTEarlyWarningRecordById(Long id);

    /**
     * 批量删除触发预警记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTEarlyWarningRecordByIds(String[] ids);

    /**
     *
     * 预警报警记录查询
     * @param tEarlyWarningRecordVo
     * @return
     */
    @DataScope(deptAlias = "d")
    public List<TEarlyWarningRecordVo> selectTEarlyWarningRecordVoList(TEarlyWarningRecordVo tEarlyWarningRecordVo);
}
